package ru.gerunn.study.threads;

public class Wait {

	public static void main(String[] args) {
		Thread mainThread = Thread.currentThread();
		synchronized (mainThread) {
			try {
				mainThread.wait();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
